package com.dianplus.biz.auth.controller;


import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;


@RestController
public class UserController {


    @Value("${ceshi}")
    private String ceshi;

    @GetMapping("/user")
    public Principal user(Principal user){
        return user;
    }

    @GetMapping("/user1")
    public String user1(){
        return ceshi;
    }
}
